{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\ahone\OneDrive - Texas A&M University at Qatar\RESEARCH\Trade Spinoff - Party Families\Version 9 - FPA\REPLICATION FILES\FPA_Manuscript_Replication_Log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res}11 Oct 2023, 01:20:02
{txt}
{com}. 
. *------------------------------------------------------------------------------*
. * Replication file for "Do Parties Matter? Party Positions and European Voters’ Attitudes Towards Economic and Political Globalization" 
. * Alex Honeker 
. * October/11/2023
. *------------------------------------------------------------------------------*
. 
. 
. *------------------------------------------------------------------------------*
. * Figure 1. Party Elites’ Stances on Globalization Issues
. *------------------------------------------------------------------------------*
. 
. *Load Dataset 
. use "CHES_Dataset.dta", clear
{txt}
{com}. 
. 
. *Graph Figure 1a (Free Trade)
. bysort parfam : egen m_protrade=mean(protrade)
{txt}
{com}. bysort parfam : egen m_lrgen=mean(lrgen)
{txt}
{com}. 
. twoway (scatter m_protrade m_lrgen if parfam==1, mcolor(black) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5) legend(off)) || ///
>         (scatter m_protrade m_lrgen if parfam==2, mcolor(plb2) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_protrade m_lrgen if parfam==3, mcolor(538y) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_protrade m_lrgen if parfam==4, mcolor(dkorange) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_protrade m_lrgen if parfam==5, mcolor(plr1) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_protrade m_lrgen if parfam==6, mcolor(maroon) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_protrade m_lrgen if parfam==7, mcolor(plg3) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)), ytitle("Protectionist vs. Pro-Trade", size(medlarge)) xtitle("Left-Right", size(medlarge)) ylabel(0(2)10) xlabel(0(2)10) yline(5, lcolor(gray)) xline(5, lcolor(gray)) 
{res}{txt}
{com}.         
. graph export "CHES_Position_Trade.png", as(png)
{txt}(file CHES_Position_Trade.png written in PNG format)

{com}. 
. 
. 
. *Graph Figure 1b (Single Market) 
. bysort parfam : egen m_eu_intmark=mean(eu_intmark)
{txt}
{com}. 
. twoway (scatter m_eu_intmark m_lrgen if parfam==1, mcolor(black) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5) legend(off)) || ///
>         (scatter m_eu_intmark m_lrgen if parfam==2, mcolor(plb2) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_intmark m_lrgen if parfam==3, mcolor(538y) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_intmark m_lrgen if parfam==4, mcolor(dkorange) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_intmark m_lrgen if parfam==5, mcolor(plr1) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_intmark m_lrgen if parfam==6, mcolor(maroon) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_intmark m_lrgen if parfam==7, mcolor(plg3) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)), ytitle("Anti-Single Market vs. Pro-Single Market", size(medlarge)) xtitle("Left-Right", size(medlarge)) ylabel(1(1)7) xlabel(0(2)10) yline(4, lcolor(gray)) xline(5, lcolor(gray))        
{res}{txt}
{com}. 
. graph export "CHES_Position_SingleMarket.png", as(png)
{txt}(file CHES_Position_SingleMarket.png written in PNG format)

{com}. 
. 
. *Figure 1c (EU) 
. bysort parfam : egen m_eu_position=mean(eu_position)
{txt}
{com}. 
. twoway (scatter m_eu_position m_lrgen if parfam==1, mcolor(black) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5) legend(off)) || ///
>         (scatter m_eu_position m_lrgen if parfam==2, mcolor(plb2) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_position m_lrgen if parfam==3, mcolor(538y) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_position m_lrgen if parfam==4, mcolor(dkorange) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_position m_lrgen if parfam==5, mcolor(plr1) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_position m_lrgen if parfam==6, mcolor(maroon) msymbol(circle) msize(medlarge) mla(parfam) mlabcolor(gs5)) || ///
>         (scatter m_eu_position m_lrgen if parfam==7, mcolor(plg3) msymbol(circle)  msize(medlarge) mla(parfam) mlabcolor(gs5)), ytitle("Anti-EU vs. Pro-EU", size(medlarge)) xtitle("Left-Right", size(medlarge)) ylabel(1(1)7) xlabel(0(2)10) yline(4, lcolor(gray)) xline(5, lcolor(gray))
{res}{txt}
{com}. 
. graph export "CHES_Position_EU.png", as(png)
{txt}(file CHES_Position_EU.png written in PNG format)

{com}. 
. 
. 
. *Load Dataset 
. use "CMP_Dataset.dta", clear
{txt}(Manifesto Project Dataset Version 2020b. Please type "notes" for more details)

{com}. 
. 
. *Graph Figure 1a (Internationalism)
. bysort parfam2 : egen m_rile=mean(rile)
{txt}
{com}. bysort parfam2 : egen m_net_internat=mean(net_internat)
{txt}
{com}. 
. twoway (scatter m_net_internat m_rile if parfam2==1, mcolor(maroon) msize(medlarge) msymbol(circle) mla(parfam2) mlabcolor(gs5) legend(off)) || ///
>         (scatter m_net_internat m_rile if parfam2==2, mcolor(plg3) msize(medlarge) msymbol(circle) mla(parfam2) mlabcolor(gs5)) || ///
>         (scatter m_net_internat m_rile if parfam2==3, mcolor(plr1) msize(medlarge) msymbol(circle) mla(parfam2) mlabcolor(gs5)) || ///
>         (scatter m_net_internat m_rile if parfam2==4, mcolor(538y) msize(medlarge) msymbol(circle) mla(parfam2) mlabcolor(gs5)) || ///
>         (scatter m_net_internat m_rile if parfam2==5, mcolor(plb2) msize(medlarge) msymbol(circle) mla(parfam2) mlabcolor(gs5)) || ///
>         (scatter m_net_internat m_rile if parfam2==6, mcolor(dkorange) msize(medlarge) msymbol(circle) mla(parfam2) mlabcolor(gs5)) || ///
>         (scatter m_net_internat m_rile if parfam2==7, mcolor(black) msize(medlarge) msymbol(circle) mla(parfam2) mlabcolor(gs5)), ytitle("Net Internationalism", size(medlarge)) xtitle("Left-Right", size(medlarge)) yline(0, lcolor(gray)) xline(0, lcolor(gray)) ylabel(-.1(.5)3) xlabel(-25(5)20) 
{res}{txt}
{com}.         
. graph export "CMP_Position_Intl.png", as(png)
{txt}(file CMP_Position_Intl.png written in PNG format)

{com}. 
. 
. 
. *------------------------------------------------------------------------------*
. * Figure 2. The Effect of Party Positions on Voters’ Support for Economic Globalization
. *------------------------------------------------------------------------------*
. 
. * Load Dataset 
. use "ISSP_Dataset.dta", clear 
{txt}
{com}. 
. 
. *Figure 2 (top) - Model 2 in Table C1 in Appendix 
. eststo: quietly mixed n_econ_glob ///
>         n_party_trade_pre2013 n_nationalism n_xenophobia n_isolationism n_educ_cat ///
>         manufacture n_c_rti offshorable_bl n_rti_offshor unemployed ///
>         union female n_age n_ln_gdppc n_econ_open n_socialexp_eu ///
>         if euro_sample==1, ||country_year: , vce(robust)   
{txt}({res}est11{txt} stored)

{com}. estimates store M2
{txt}
{com}. 
. 
. *Figure 2 (bottom) - Model 1 in Table C1 in Appendix 
. eststo: quietly mixed n_econ_glob ///
>         n_party_intmark_2010 n_nationalism n_xenophobia n_isolationism n_educ_cat ///
>         manufacture n_c_rti offshorable_bl n_rti_offshor unemployed ///
>         union female n_age n_ln_gdppc n_econ_open n_socialexp_eu ///
>         if euro_sample==1, ||country_year: , vce(robust)   
{txt}({res}est12{txt} stored)

{com}. estimates store M1
{txt}
{com}. 
. 
. *Export Table: 
. esttab M1 M2 using Fig2_TabC1.rtf, replace r2 se label star(* .1 ** .05 *** .01) scalars("ll Log Lik." "chi2 Chi-Squared" aic bic N)  nobaselevels 
{res}{txt}(note: file Fig2_TabC1.rtf not found)
(output written to {browse  `"Fig2_TabC1.rtf"'})

{com}. 
. 
. *Graph Coefficient Plot (Figure 2 - Top) 
. estimates restore M2 
{txt}(results {stata estimates replay M2:M2} are active now)

{com}. 
. margins, dydx(n_party_trade_pre2013 ///
>         n_nationalism n_xenophobia n_isolationism ///
>         n_educ_cat manufacture n_c_rti offshorable_bl n_rti_offshor ///
>         unemployed union female n_age) post
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}     9,090
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, fixed portion, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:n_party_trade_pre2013 n_nationalism n_xenophobia n_isolationism n_educ_cat manufacture n_c_rti offshorable_bl n_rti_offshor unemployed union female n_age}{p_end}
{p2colreset}{...}

{res}{txt}{hline 22}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 23}{c |}{col 35} Delta-method
{col 23}{c |}      dy/dx{col 35}   Std. Err.{col 47}      z{col 55}   P>|z|{col 63}     [95% Con{col 76}f. Interval]
{hline 22}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
n_party_trade_pre2013 {c |}{col 23}{res}{space 2} .0428584{col 35}{space 2}  .008522{col 46}{space 1}    5.03{col 55}{space 3}0.000{col 63}{space 4} .0261556{col 76}{space 3} .0595612
{txt}{space 8}n_nationalism {c |}{col 23}{res}{space 2}-.0080447{col 35}{space 2} .0162027{col 46}{space 1}   -0.50{col 55}{space 3}0.620{col 63}{space 4}-.0398013{col 76}{space 3} .0237119
{txt}{space 9}n_xenophobia {c |}{col 23}{res}{space 2}-.2079485{col 35}{space 2}  .025029{col 46}{space 1}   -8.31{col 55}{space 3}0.000{col 63}{space 4}-.2570043{col 76}{space 3}-.1588926
{txt}{space 7}n_isolationism {c |}{col 23}{res}{space 2}-.1303908{col 35}{space 2}  .010416{col 46}{space 1}  -12.52{col 55}{space 3}0.000{col 63}{space 4}-.1508058{col 76}{space 3}-.1099759
{txt}{space 11}n_educ_cat {c |}{col 23}{res}{space 2} .0643822{col 35}{space 2} .0091259{col 46}{space 1}    7.05{col 55}{space 3}0.000{col 63}{space 4} .0464958{col 76}{space 3} .0822685
{txt}{space 10}manufacture {c |}{col 23}{res}{space 2}-.0139184{col 35}{space 2} .0079064{col 46}{space 1}   -1.76{col 55}{space 3}0.078{col 63}{space 4}-.0294146{col 76}{space 3} .0015778
{txt}{space 14}n_c_rti {c |}{col 23}{res}{space 2}-.0036006{col 35}{space 2} .0177383{col 46}{space 1}   -0.20{col 55}{space 3}0.839{col 63}{space 4}-.0383669{col 76}{space 3} .0311658
{txt}{space 7}offshorable_bl {c |}{col 23}{res}{space 2} .0147165{col 35}{space 2} .0064046{col 46}{space 1}    2.30{col 55}{space 3}0.022{col 63}{space 4} .0021637{col 76}{space 3} .0272692
{txt}{space 8}n_rti_offshor {c |}{col 23}{res}{space 2}-.0692862{col 35}{space 2}  .039598{col 46}{space 1}   -1.75{col 55}{space 3}0.080{col 63}{space 4}-.1468969{col 76}{space 3} .0083246
{txt}{space 11}unemployed {c |}{col 23}{res}{space 2} .0016761{col 35}{space 2} .0078107{col 46}{space 1}    0.21{col 55}{space 3}0.830{col 63}{space 4}-.0136326{col 76}{space 3} .0169848
{txt}{space 16}union {c |}{col 23}{res}{space 2}-.0130981{col 35}{space 2} .0055764{col 46}{space 1}   -2.35{col 55}{space 3}0.019{col 63}{space 4}-.0240277{col 76}{space 3}-.0021685
{txt}{space 15}female {c |}{col 23}{res}{space 2} -.037636{col 35}{space 2} .0049412{col 46}{space 1}   -7.62{col 55}{space 3}0.000{col 63}{space 4}-.0473207{col 76}{space 3}-.0279514
{txt}{space 16}n_age {c |}{col 23}{res}{space 2}-.0517858{col 35}{space 2} .0204227{col 46}{space 1}   -2.54{col 55}{space 3}0.011{col 63}{space 4}-.0918136{col 76}{space 3}-.0117581
{txt}{hline 22}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. marginsplot, horizontal xline(0, lc(blue)) yscale(reverse) recast(scatter) ///
>         xtitle("Effects on Attitudes Towards Economic Globalization") ///
>         plot1opts(msymbol(circle) mcolor(plr2)) ciopts(lc(plr2)) derivlabels ///
>         ytitle("") title("")
{res}
{text}{p 2 6 2}Variables that uniquely identify margins: _deriv{p_end}
{res}{txt}
{com}. 
. graph export "Fig2_Top.png", width(6000) replace
{txt}(note: file Fig2_Top.png not found)
(file Fig2_Top.png written in PNG format)

{com}. 
. 
. *Graph Coefficient Plot (Figure 2 - Bottom) 
. estimates restore M1
{txt}(results {stata estimates replay M1:M1} are active now)

{com}. 
. margins, dydx(n_party_intmark_2010 ///
>         n_nationalism n_xenophobia n_isolationism ///
>         n_educ_cat manufacture n_c_rti offshorable_bl n_rti_offshor ///
>         unemployed union female n_age) post
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}    12,088
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, fixed portion, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:n_party_intmark_2010 n_nationalism n_xenophobia n_isolationism n_educ_cat manufacture n_c_rti offshorable_bl n_rti_offshor unemployed union female n_age}{p_end}
{p2colreset}{...}

{res}{txt}{hline 21}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 22}{c |}{col 34} Delta-method
{col 22}{c |}      dy/dx{col 34}   Std. Err.{col 46}      z{col 54}   P>|z|{col 62}     [95% Con{col 75}f. Interval]
{hline 21}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
n_party_intmark_2010 {c |}{col 22}{res}{space 2} .1306334{col 34}{space 2} .0153581{col 45}{space 1}    8.51{col 54}{space 3}0.000{col 62}{space 4} .1005321{col 75}{space 3} .1607348
{txt}{space 7}n_nationalism {c |}{col 22}{res}{space 2}-.0215616{col 34}{space 2} .0174447{col 45}{space 1}   -1.24{col 54}{space 3}0.216{col 62}{space 4}-.0557526{col 75}{space 3} .0126294
{txt}{space 8}n_xenophobia {c |}{col 22}{res}{space 2}-.1893506{col 34}{space 2} .0204553{col 45}{space 1}   -9.26{col 54}{space 3}0.000{col 62}{space 4}-.2294422{col 75}{space 3} -.149259
{txt}{space 6}n_isolationism {c |}{col 22}{res}{space 2}-.1128104{col 34}{space 2} .0092982{col 45}{space 1}  -12.13{col 54}{space 3}0.000{col 62}{space 4}-.1310345{col 75}{space 3}-.0945863
{txt}{space 10}n_educ_cat {c |}{col 22}{res}{space 2} .0583689{col 34}{space 2} .0088234{col 45}{space 1}    6.62{col 54}{space 3}0.000{col 62}{space 4} .0410754{col 75}{space 3} .0756624
{txt}{space 9}manufacture {c |}{col 22}{res}{space 2} -.017679{col 34}{space 2} .0072668{col 45}{space 1}   -2.43{col 54}{space 3}0.015{col 62}{space 4}-.0319216{col 75}{space 3}-.0034364
{txt}{space 13}n_c_rti {c |}{col 22}{res}{space 2}-.0128522{col 34}{space 2}  .018366{col 45}{space 1}   -0.70{col 54}{space 3}0.484{col 62}{space 4}-.0488489{col 75}{space 3} .0231445
{txt}{space 6}offshorable_bl {c |}{col 22}{res}{space 2} .0238866{col 34}{space 2} .0061763{col 45}{space 1}    3.87{col 54}{space 3}0.000{col 62}{space 4} .0117812{col 75}{space 3}  .035992
{txt}{space 7}n_rti_offshor {c |}{col 22}{res}{space 2}-.0624995{col 34}{space 2} .0373535{col 45}{space 1}   -1.67{col 54}{space 3}0.094{col 62}{space 4}-.1357111{col 75}{space 3} .0107121
{txt}{space 10}unemployed {c |}{col 22}{res}{space 2}-.0024535{col 34}{space 2} .0070416{col 45}{space 1}   -0.35{col 54}{space 3}0.728{col 62}{space 4}-.0162547{col 75}{space 3} .0113477
{txt}{space 15}union {c |}{col 22}{res}{space 2}-.0181018{col 34}{space 2} .0039299{col 45}{space 1}   -4.61{col 54}{space 3}0.000{col 62}{space 4}-.0258042{col 75}{space 3}-.0103994
{txt}{space 14}female {c |}{col 22}{res}{space 2}-.0407929{col 34}{space 2} .0054649{col 45}{space 1}   -7.46{col 54}{space 3}0.000{col 62}{space 4} -.051504{col 75}{space 3}-.0300818
{txt}{space 15}n_age {c |}{col 22}{res}{space 2}-.0568743{col 34}{space 2}  .014052{col 45}{space 1}   -4.05{col 54}{space 3}0.000{col 62}{space 4}-.0844157{col 75}{space 3}-.0293329
{txt}{hline 21}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. marginsplot, horizontal xline(0, lc(blue)) yscale(reverse) recast(scatter) ///
>         xtitle("Effects on Attitudes Towards Economic Globalization") ///
>         plot1opts(msymbol(circle) mcolor(plr2)) ciopts(lc(plr2)) derivlabels ///
>         ytitle("") title("")
{res}
{text}{p 2 6 2}Variables that uniquely identify margins: _deriv{p_end}
{res}{txt}
{com}. 
. graph export "Fig2_Bottom.png", width(6000) replace
{txt}(note: file Fig2_Bottom.png not found)
(file Fig2_Bottom.png written in PNG format)

{com}. 
. 
. 
. *------------------------------------------------------------------------------*
. * Figure 3. The Effect of Party Positions on Voters’ Support for Political Globalization
. *------------------------------------------------------------------------------*
. 
. *Figure 3 (top) - Model 5 in Table C1 in Appendix 
. eststo: quietly mixed n_pol_glob ///
>         n_party_EU_2010 n_nationalism n_xenophobia n_isolationism n_educ_cat ///
>         manufacture n_c_rti offshorable_bl n_rti_offshor unemployed ///
>         union female n_age n_ln_gdppc n_econ_open n_socialexp_eu ///
>         if euro_sample==1, ||country_year: , vce(robust)   
{txt}({res}est13{txt} stored)

{com}. estimates store M5
{txt}
{com}. 
. 
. *Figure 3 (bottom) - Model 6 in Table C1 in Appendix 
. eststo: quietly mixed n_pol_glob ///
>         n_party_internat_pre2013 n_nationalism n_xenophobia n_isolationism n_educ_cat ///
>         manufacture n_c_rti offshorable_bl n_rti_offshor unemployed ///
>         union female n_age n_ln_gdppc n_econ_open n_socialexp_eu ///
>         if euro_sample==1, ||country_year: , vce(robust)   
{txt}({res}est14{txt} stored)

{com}. estimates store M6
{txt}
{com}. 
. 
. *Export Table: 
. esttab M5 M6 using Fig3_TabC1.rtf, replace r2 se label star(* .1 ** .05 *** .01) scalars("ll Log Lik." "chi2 Chi-Squared" aic bic N)  nobaselevels 
{res}{txt}(note: file Fig3_TabC1.rtf not found)
(output written to {browse  `"Fig3_TabC1.rtf"'})

{com}. 
. 
. *Graph Coefficient Plot (Figure 3 - Top) 
. estimates restore M5
{txt}(results {stata estimates replay M5:M5} are active now)

{com}. 
. margins, dydx(n_party_EU_2010 ///
>         n_nationalism n_xenophobia n_isolationism ///
>         n_educ_cat manufacture n_c_rti offshorable_bl n_rti_offshor ///
>         unemployed union female n_age) post
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}    12,081
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, fixed portion, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:n_party_EU_2010 n_nationalism n_xenophobia n_isolationism n_educ_cat manufacture n_c_rti offshorable_bl n_rti_offshor unemployed union female n_age}{p_end}
{p2colreset}{...}

{res}{txt}{hline 16}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 17}{c |}{col 29} Delta-method
{col 17}{c |}      dy/dx{col 29}   Std. Err.{col 41}      z{col 49}   P>|z|{col 57}     [95% Con{col 70}f. Interval]
{hline 16}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
n_party_EU_2010 {c |}{col 17}{res}{space 2} .1057399{col 29}{space 2} .0193385{col 40}{space 1}    5.47{col 49}{space 3}0.000{col 57}{space 4} .0678372{col 70}{space 3} .1436426
{txt}{space 2}n_nationalism {c |}{col 17}{res}{space 2}-.0322096{col 29}{space 2} .0167731{col 40}{space 1}   -1.92{col 49}{space 3}0.055{col 57}{space 4}-.0650842{col 70}{space 3} .0006651
{txt}{space 3}n_xenophobia {c |}{col 17}{res}{space 2}-.2612797{col 29}{space 2} .0299319{col 40}{space 1}   -8.73{col 49}{space 3}0.000{col 57}{space 4}-.3199452{col 70}{space 3}-.2026142
{txt}{space 1}n_isolationism {c |}{col 17}{res}{space 2}-.1562325{col 29}{space 2} .0123065{col 40}{space 1}  -12.70{col 49}{space 3}0.000{col 57}{space 4}-.1803528{col 70}{space 3}-.1321121
{txt}{space 5}n_educ_cat {c |}{col 17}{res}{space 2} .0733811{col 29}{space 2} .0095892{col 40}{space 1}    7.65{col 49}{space 3}0.000{col 57}{space 4} .0545867{col 70}{space 3} .0921756
{txt}{space 4}manufacture {c |}{col 17}{res}{space 2}-.0048876{col 29}{space 2} .0065751{col 40}{space 1}   -0.74{col 49}{space 3}0.457{col 57}{space 4}-.0177745{col 70}{space 3} .0079993
{txt}{space 8}n_c_rti {c |}{col 17}{res}{space 2}-.0464004{col 29}{space 2} .0121194{col 40}{space 1}   -3.83{col 49}{space 3}0.000{col 57}{space 4} -.070154{col 70}{space 3}-.0226467
{txt}{space 1}offshorable_bl {c |}{col 17}{res}{space 2} .0036212{col 29}{space 2} .0064124{col 40}{space 1}    0.56{col 49}{space 3}0.572{col 57}{space 4} -.008947{col 70}{space 3} .0161893
{txt}{space 2}n_rti_offshor {c |}{col 17}{res}{space 2}-.0225629{col 29}{space 2} .0320584{col 40}{space 1}   -0.70{col 49}{space 3}0.482{col 57}{space 4}-.0853962{col 70}{space 3} .0402705
{txt}{space 5}unemployed {c |}{col 17}{res}{space 2} .0086144{col 29}{space 2} .0120112{col 40}{space 1}    0.72{col 49}{space 3}0.473{col 57}{space 4}-.0149271{col 70}{space 3}  .032156
{txt}{space 10}union {c |}{col 17}{res}{space 2} -.006199{col 29}{space 2} .0046464{col 40}{space 1}   -1.33{col 49}{space 3}0.182{col 57}{space 4}-.0153057{col 70}{space 3} .0029078
{txt}{space 9}female {c |}{col 17}{res}{space 2}-.0129092{col 29}{space 2} .0059231{col 40}{space 1}   -2.18{col 49}{space 3}0.029{col 57}{space 4}-.0245182{col 70}{space 3}-.0013002
{txt}{space 10}n_age {c |}{col 17}{res}{space 2}-.0822047{col 29}{space 2} .0161912{col 40}{space 1}   -5.08{col 49}{space 3}0.000{col 57}{space 4}-.1139388{col 70}{space 3}-.0504706
{txt}{hline 16}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. marginsplot, horizontal xline(0, lc(blue)) yscale(reverse) recast(scatter) ///
>         xtitle("Effects on Attitudes Towards Political Globalization") ///
>         plot1opts(msymbol(circle) mcolor(plr2)) ciopts(lc(plr2)) derivlabels ///
>         ytitle("") title("")
{res}
{text}{p 2 6 2}Variables that uniquely identify margins: _deriv{p_end}
{res}{txt}
{com}. 
. graph export "Fig3_Top.png", width(6000) replace
{txt}(note: file Fig3_Top.png not found)
(file Fig3_Top.png written in PNG format)

{com}. 
. 
. *Graph Coefficient Plot (Figure 3 - Bottom) 
. estimates restore M6
{txt}(results {stata estimates replay M6:M6} are active now)

{com}. 
. margins, dydx(n_party_internat_pre2013 ///
>         n_nationalism n_xenophobia n_isolationism ///
>         n_educ_cat manufacture n_c_rti offshorable_bl n_rti_offshor ///
>         unemployed union female n_age) post
{res}
{txt}Average marginal effects{col 49}Number of obs{col 67}= {res}    12,511
{txt}{col 1}Model VCE{col 14}: {res}Robust

{txt}{p2colset 1 14 16 2}{...}
{p2col:Expression}:{space 1}{res:Linear prediction, fixed portion, predict()}{p_end}
{p2colreset}{...}
{txt}{p2colset 1 14 16 2}{...}
{p2col:dy/dx w.r.t.}:{space 1}{res:n_party_internat_pre2013 n_nationalism n_xenophobia n_isolationism n_educ_cat manufacture n_c_rti offshorable_bl n_rti_offshor unemployed union female n_age}{p_end}
{p2colreset}{...}

{res}{txt}{hline 25}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 26}{c |}{col 38} Delta-method
{col 26}{c |}      dy/dx{col 38}   Std. Err.{col 50}      z{col 58}   P>|z|{col 66}     [95% Con{col 79}f. Interval]
{hline 25}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
n_party_internat_pre2013 {c |}{col 26}{res}{space 2} .0619374{col 38}{space 2}  .013826{col 49}{space 1}    4.48{col 58}{space 3}0.000{col 66}{space 4} .0348389{col 79}{space 3} .0890358
{txt}{space 11}n_nationalism {c |}{col 26}{res}{space 2}-.0244832{col 38}{space 2}  .017653{col 49}{space 1}   -1.39{col 58}{space 3}0.165{col 66}{space 4}-.0590825{col 79}{space 3} .0101161
{txt}{space 12}n_xenophobia {c |}{col 26}{res}{space 2}-.2864509{col 38}{space 2} .0329149{col 49}{space 1}   -8.70{col 58}{space 3}0.000{col 66}{space 4}-.3509629{col 79}{space 3}-.2219389
{txt}{space 10}n_isolationism {c |}{col 26}{res}{space 2}-.1635438{col 38}{space 2} .0135378{col 49}{space 1}  -12.08{col 58}{space 3}0.000{col 66}{space 4}-.1900774{col 79}{space 3}-.1370103
{txt}{space 14}n_educ_cat {c |}{col 26}{res}{space 2} .0773704{col 38}{space 2}  .011015{col 49}{space 1}    7.02{col 58}{space 3}0.000{col 66}{space 4} .0557813{col 79}{space 3} .0989595
{txt}{space 13}manufacture {c |}{col 26}{res}{space 2}-.0061375{col 38}{space 2} .0065248{col 49}{space 1}   -0.94{col 58}{space 3}0.347{col 66}{space 4}-.0189259{col 79}{space 3} .0066508
{txt}{space 17}n_c_rti {c |}{col 26}{res}{space 2}-.0502873{col 38}{space 2} .0114787{col 49}{space 1}   -4.38{col 58}{space 3}0.000{col 66}{space 4}-.0727852{col 79}{space 3}-.0277894
{txt}{space 10}offshorable_bl {c |}{col 26}{res}{space 2} .0038366{col 38}{space 2} .0061543{col 49}{space 1}    0.62{col 58}{space 3}0.533{col 66}{space 4}-.0082256{col 79}{space 3} .0158989
{txt}{space 11}n_rti_offshor {c |}{col 26}{res}{space 2}-.0294466{col 38}{space 2}  .032259{col 49}{space 1}   -0.91{col 58}{space 3}0.361{col 66}{space 4}-.0926731{col 79}{space 3} .0337799
{txt}{space 14}unemployed {c |}{col 26}{res}{space 2} .0033413{col 38}{space 2} .0116889{col 49}{space 1}    0.29{col 58}{space 3}0.775{col 66}{space 4}-.0195685{col 79}{space 3} .0262511
{txt}{space 19}union {c |}{col 26}{res}{space 2}  -.00687{col 38}{space 2} .0041269{col 49}{space 1}   -1.66{col 58}{space 3}0.096{col 66}{space 4}-.0149586{col 79}{space 3} .0012187
{txt}{space 18}female {c |}{col 26}{res}{space 2}-.0161543{col 38}{space 2} .0055977{col 49}{space 1}   -2.89{col 58}{space 3}0.004{col 66}{space 4}-.0271255{col 79}{space 3}-.0051831
{txt}{space 19}n_age {c |}{col 26}{res}{space 2}-.0699843{col 38}{space 2} .0165301{col 49}{space 1}   -4.23{col 58}{space 3}0.000{col 66}{space 4}-.1023827{col 79}{space 3}-.0375859
{txt}{hline 25}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. 
. marginsplot, horizontal xline(0, lc(blue)) yscale(reverse) recast(scatter) ///
>         xtitle("Effects on Attitudes Towards Political Globalization") ///
>         plot1opts(msymbol(circle) mcolor(plr2)) ciopts(lc(plr2)) derivlabels ///
>         ytitle("") title("")
{res}
{text}{p 2 6 2}Variables that uniquely identify margins: _deriv{p_end}
{res}{txt}
{com}. 
. graph export "Fig3_Bottom.png", width(6000) replace
{txt}(note: file Fig3_Bottom.png not found)
(file Fig3_Bottom.png written in PNG format)

{com}. 
. 
. 
. *------------------------------------------------------------------------------*
. * Figure 4. The Effect of Party Cues on Voters’ Support for Economic and Political Globalization
. *------------------------------------------------------------------------------*
. 
. *Figure 4 (top) - Model 1 in Table C7 in Appendix 
. eststo: quietly mixed n_econ_glob ///
>         ib10.parfam_CMP_2 n_nationalism n_xenophobia n_isolationism n_educ_cat ///
>         manufacture n_c_rti offshorable_bl n_rti_offshor unemployed ///
>         union female n_age n_ln_gdppc n_econ_open n_socialexp_eu ///
>         if euro_sample==1, ||country_year: , vce(robust) 
{txt}({res}est15{txt} stored)

{com}. estimates store M1
{txt}
{com}. 
. 
. *Figure 4 (bottom) - Model 3 in Table C7 in Appendix
. eststo: quietly mixed n_pol_glob ///
>         ib10.parfam_CMP_2 n_nationalism n_xenophobia n_isolationism n_educ_cat ///
>         manufacture n_c_rti offshorable_bl n_rti_offshor unemployed ///
>         union female n_age n_ln_gdppc n_econ_open n_socialexp_eu ///
>         if euro_sample==1, ||country_year: , vce(robust) 
{txt}({res}est16{txt} stored)

{com}. estimates store M3
{txt}
{com}. 
. 
. *Export Table: 
. esttab M1 M3 using Fig4_TabC7.rtf, replace r2 se label star(* .1 ** .05 *** .01) scalars("ll Log Lik." "chi2 Chi-Squared" aic bic N)  nobaselevels 
{res}{txt}(note: file Fig4_TabC7.rtf not found)
(output written to {browse  `"Fig4_TabC7.rtf"'})

{com}. 
. 
. *Graph Coefficient Plot (Figure 4 - Top) 
. estimates restore M1
{txt}(results {stata estimates replay M1:M1} are active now)

{com}. 
. coefplot ///
>         (M1, keep(1.parfam_CMP_2) ///
>         mcolor(maroon) ciopts(color(maroon) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(2.parfam_CMP_2) ///
>         mcolor(plg3) ciopts(color(plg3) recast(rcap)) msymbol(circle)) ///      
>         (M1, keep(3.parfam_CMP_2) ///
>         mcolor(plr1) ciopts(color(plr1) recast(rcap)) msymbol(circle)) ///                      
>         (M1, keep(4.parfam_CMP_2) ///
>         mcolor(538y) ciopts(color(538y) recast(rcap)) msymbol(circle)) ///                              
>         (M1, keep(5.parfam_CMP_2) ///
>         mcolor(plb2) ciopts(color(plb2) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(6.parfam_CMP_2) ///
>         mcolor(dkorange) ciopts(color(dkorange) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(7.parfam_CMP_2) ///
>         mcolor(black) ciopts(color(black) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(n_nationalism) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(n_xenophobia) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(n_isolationism) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(n_educ_cat) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(manufacture) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(n_c_rti) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(offshorable_bl) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(n_rti_offshor) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(unemployed) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(union) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(female) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M1, keep(n_age) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)), ///
>         xline(0, lc(blue)) baselevels ///
>         xtitle("Effects on Attitudes Towards Economic Globalization", size(medium)) ///
>         legend(off) ///
>         coeflabels(1.parfam_CMP_2 = "Populist Left" ///
>         2.parfam_CMP_2 = "Green" 3.parfam_CMP_2 = "Social Dem" ///
>         4.parfam_CMP_2 = "Liberal" 5.parfam_CMP_2 = "Conservative" ///
>         6.parfam_CMP_2 = "Christian Dem" 7.parfam_CMP_2 = "Populist Right") nooffsets
{res}{p 0 4 2}
{txt}(note:  named style
p16 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p16 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p17 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p17 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p18 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p18 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p19 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p19 not found in class
seriesstyle,  default attributes used)
{p_end}
{res}{txt}
{com}.         
. graph export "Fig4_Top.png", width(6000) replace        
{txt}(note: file Fig4_Top.png not found)
(file Fig4_Top.png written in PNG format)

{com}.         
. 
.         
. *Graph Coefficient Plot (Figure 4 - Bottom)
. estimates restore M3
{txt}(results {stata estimates replay M3:M3} are active now)

{com}. 
. coefplot ///
>         (M3, keep(1.parfam_CMP_2) ///
>         mcolor(maroon) ciopts(color(maroon) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(2.parfam_CMP_2) ///
>         mcolor(plg3) ciopts(color(plg3) recast(rcap)) msymbol(circle)) ///      
>         (M3, keep(3.parfam_CMP_2) ///
>         mcolor(plr1) ciopts(color(plr1) recast(rcap)) msymbol(circle)) ///                      
>         (M3, keep(4.parfam_CMP_2) ///
>         mcolor(538y) ciopts(color(538y) recast(rcap)) msymbol(circle)) ///                              
>         (M3, keep(5.parfam_CMP_2) ///
>         mcolor(plb2) ciopts(color(plb2) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(6.parfam_CMP_2) ///
>         mcolor(dkorange) ciopts(color(dkorange) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(7.parfam_CMP_2) ///
>         mcolor(black) ciopts(color(black) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(n_nationalism) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(n_xenophobia) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(n_isolationism) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(n_educ_cat) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(manufacture) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(n_c_rti) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(offshorable_bl) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(n_rti_offshor) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(unemployed) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(union) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(female) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)) ///
>         (M3, keep(n_age) ///
>         mcolor(gray) ciopts(color(gray) recast(rcap)) msymbol(circle)), ///
>         xline(0, lc(blue)) baselevels ///
>         xtitle("Effects on Attitudes Towards Political Globalization", size(medium)) ///
>         legend(off) ///
>         coeflabels(1.parfam_CMP_2 = "Populist Left" ///
>         2.parfam_CMP_2 = "Green" 3.parfam_CMP_2 = "Social Dem" ///
>         4.parfam_CMP_2 = "Liberal" 5.parfam_CMP_2 = "Conservative" ///
>         6.parfam_CMP_2 = "Christian Dem" 7.parfam_CMP_2 = "Populist Right") nooffsets
{res}{p 0 4 2}
{txt}(note:  named style
p16 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p16 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p17 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p17 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p18 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p18 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p19 not found in class
seriesstyle,  default attributes used)
{p_end}
{p 0 4 2}
{txt}(note:  named style
p19 not found in class
seriesstyle,  default attributes used)
{p_end}
{res}{txt}
{com}.         
. graph export "Fig4_Bottom.png", width(6000) replace     
{txt}(note: file Fig4_Bottom.png not found)
(file Fig4_Bottom.png written in PNG format)

{com}. 
. 
. *------------------------------------------------------------------------------*
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\ahone\OneDrive - Texas A&M University at Qatar\RESEARCH\Trade Spinoff - Party Families\Version 9 - FPA\REPLICATION FILES\FPA_Manuscript_Replication_Log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res}11 Oct 2023, 01:23:47
{txt}{.-}
{smcl}
{txt}{sf}{ul off}